﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace May_21_2021
{
    public enum FoodType
    {
        烤鱼,
        小龙虾,
        炸鸡,
        小鸡炖蘑菇
    }
    class CookRobot : Robot
    {
        private FoodType food;

        public FoodType Food { get => food; set => food = value; }

        public CookRobot(string name,RobotType type, FoodType food):base(name,type)
        {
            this.food = food;
        }
    
        public override void Working()
        {
            Console.WriteLine("机器人：{0}，帮我炒个菜:{1}",this.Name,this.food);
        }
    }
}
